package com.pap.msg.dto;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 消息实体信息
 * @Auther: alexgaoyh
 * @Date: 2019/1/3 15:08
 * @Description:
 */

public class MsgInfoWithContentDTO extends PapBaseEntity implements Serializable {

    /**
     *  消息编号,所属表字段为t_msg_content.MSG_CONTENT_ID
     */
    @MyBatisColumnAnnotation(name = "MSG_CONTENT_ID", value = "t_msg_content_MSG_CONTENT_ID", chineseNote = "消息编号", tableAlias = "t_msg_content")
    @ApiModelProperty(value = "消息编号")
    private String msgContentId;

    /**
     *  消息标题,所属表字段为t_msg_content.MSG_CONTENT_TITLE
     */
    @MyBatisColumnAnnotation(name = "MSG_CONTENT_TITLE", value = "t_msg_content_MSG_CONTENT_TITLE", chineseNote = "消息标题", tableAlias = "t_msg_content")
    @ApiModelProperty(value = "消息标题")
    private String msgContentTitle;

    /**
     *  消息正文,所属表字段为t_msg_content.MSG_CONTENT
     */
    @MyBatisColumnAnnotation(name = "MSG_CONTENT", value = "t_msg_content_MSG_CONTENT", chineseNote = "消息正文", tableAlias = "t_msg_content")
    @ApiModelProperty(value = "消息正文")
    private String msgContent;

    /**
     *  消息类型:S系统消息;U:用户消息,所属表字段为t_msg_content.MSG_CONTENT_TYPE
     */
    @MyBatisColumnAnnotation(name = "MSG_CONTENT_TYPE", value = "t_msg_content_MSG_CONTENT_TYPE", chineseNote = "消息类型:S系统消息;U:用户消息", tableAlias = "t_msg_content")
    @ApiModelProperty(value = "消息类型:S系统消息;U:用户消息")
    private String msgContentType;

    /**
     *  消息状态:C草稿/P已发送,所属表字段为t_msg_content.MSG_STATUS
     */
    @MyBatisColumnAnnotation(name = "MSG_STATUS", value = "t_msg_content_MSG_STATUS", chineseNote = "消息状态:C草稿/P已发送", tableAlias = "t_msg_content")
    @ApiModelProperty(value = "消息状态:C草稿/P已发送")
    private String msgStatus;

    /**
     *  消息关联请求地址,所属表字段为t_msg_content.MSG_URL
     */
    @MyBatisColumnAnnotation(name = "MSG_URL", value = "t_msg_content_MSG_URL", chineseNote = "消息关联请求地址", tableAlias = "t_msg_content")
    @ApiModelProperty(value = "消息关联请求地址")
    private String msgUrl;

    /**
     *  删除状态标识	,所属表字段为t_msg_content.DELETE_FLAG
     */
    @MyBatisColumnAnnotation(name = "DELETE_FLAG", value = "t_msg_content_DELETE_FLAG", chineseNote = "删除状态标识	", tableAlias = "t_msg_content")
    @ApiModelProperty(value = "删除状态标识	")
    private String deleteFlag;

    /**
     *  备注,所属表字段为t_msg_content.REMARK
     */
    @MyBatisColumnAnnotation(name = "REMARK", value = "t_msg_content_REMARK", chineseNote = "备注", tableAlias = "t_msg_content")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     *  消息容器编号,所属表字段为t_msg_info.MSG_INFO_ID
     */
    @MyBatisColumnAnnotation(name = "MSG_INFO_ID", value = "t_msg_info_MSG_INFO_ID", chineseNote = "消息容器编号", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "消息容器编号")
    private String msgInfoId;

    /**
     *  发送者编号,所属表字段为t_msg_info.USER_SEND_ID
     */
    @MyBatisColumnAnnotation(name = "USER_SEND_ID", value = "t_msg_info_USER_SEND_ID", chineseNote = "发送者编号", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "发送者编号")
    private String userSendId;

    /**
     *  发送者名称,所属表字段为t_msg_info.USER_SEND_NAME
     */
    @MyBatisColumnAnnotation(name = "USER_SEND_NAME", value = "t_msg_info_USER_SEND_NAME", chineseNote = "发送者名称", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "发送者名称")
    private String userSendName;

    /**
     *  接收者编号,所属表字段为t_msg_info.USER_RECEIVER_ID
     */
    @MyBatisColumnAnnotation(name = "USER_RECEIVER_ID", value = "t_msg_info_USER_RECEIVER_ID", chineseNote = "接收者编号", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "接收者编号")
    private String userReceiverId;

    /**
     *  接收者名称,所属表字段为t_msg_info.USSR_RECEIVER_NAME
     */
    @MyBatisColumnAnnotation(name = "USSR_RECEIVER_NAME", value = "t_msg_info_USSR_RECEIVER_NAME", chineseNote = "接收者名称", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "接收者名称")
    private String ussrReceiverName;

    /**
     *  已读状态标识	,所属表字段为t_msg_info.READ_FLAG
     */
    @MyBatisColumnAnnotation(name = "READ_FLAG", value = "t_msg_info_READ_FLAG", chineseNote = "已读状态标识	", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "已读状态标识	")
    private String readFlag;

    @Override
    public String getDynamicTableName() {
        return "t_msg_info";
    }

    public String getMsgContentId() {
        return msgContentId;
    }

    public void setMsgContentId(String msgContentId) {
        this.msgContentId = msgContentId;
    }

    public String getMsgContentTitle() {
        return msgContentTitle;
    }

    public void setMsgContentTitle(String msgContentTitle) {
        this.msgContentTitle = msgContentTitle;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public String getMsgContentType() {
        return msgContentType;
    }

    public void setMsgContentType(String msgContentType) {
        this.msgContentType = msgContentType;
    }

    public String getMsgStatus() {
        return msgStatus;
    }

    public void setMsgStatus(String msgStatus) {
        this.msgStatus = msgStatus;
    }

    public String getMsgUrl() {
        return msgUrl;
    }

    public void setMsgUrl(String msgUrl) {
        this.msgUrl = msgUrl;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getMsgInfoId() {
        return msgInfoId;
    }

    public void setMsgInfoId(String msgInfoId) {
        this.msgInfoId = msgInfoId;
    }

    public String getUserSendId() {
        return userSendId;
    }

    public void setUserSendId(String userSendId) {
        this.userSendId = userSendId;
    }

    public String getUserSendName() {
        return userSendName;
    }

    public void setUserSendName(String userSendName) {
        this.userSendName = userSendName;
    }

    public String getUserReceiverId() {
        return userReceiverId;
    }

    public void setUserReceiverId(String userReceiverId) {
        this.userReceiverId = userReceiverId;
    }

    public String getUssrReceiverName() {
        return ussrReceiverName;
    }

    public void setUssrReceiverName(String ussrReceiverName) {
        this.ussrReceiverName = ussrReceiverName;
    }

    public String getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(String readFlag) {
        this.readFlag = readFlag;
    }

    @Override
    public String toString() {
        return "MsgInfoWithContentDTO{" +
                "msgContentId='" + msgContentId + '\'' +
                ", msgContentTitle='" + msgContentTitle + '\'' +
                ", msgContent='" + msgContent + '\'' +
                ", msgContentType='" + msgContentType + '\'' +
                ", msgStatus='" + msgStatus + '\'' +
                ", msgUrl='" + msgUrl + '\'' +
                ", deleteFlag='" + deleteFlag + '\'' +
                ", remark='" + remark + '\'' +
                ", msgInfoId='" + msgInfoId + '\'' +
                ", userSendId='" + userSendId + '\'' +
                ", userSendName='" + userSendName + '\'' +
                ", userReceiverId='" + userReceiverId + '\'' +
                ", ussrReceiverName='" + ussrReceiverName + '\'' +
                ", readFlag='" + readFlag + '\'' +
                '}';
    }
}
